package pcjavanet.mobilesell.model;

import java.util.Date;

 import pcjavanet.mobilesell.model.Catalog;

 import pcjavanet.mobilesell.model.Unit;

 import pcjavanet.mobilesell.model.Configuration;

public class Goods {
    private Integer dbid;

    private String name;

    private Integer refCatalogDbid;

    private Integer refUnitDbid;

    private Integer refConfigurationDbid;

    private Integer number;

    private Integer catatypeid;

    private Double retailprice;

    private Double lowretailprice;

    private Double lowwholesaleprice;

    private String pinnumber;

    private Date createDate;

    private Catalog catalog = null;
    private Unit unit = null;
    private Configuration configuration = null;
    public void setCatalog( Catalog catalog ){
        this.catalog=catalog;
    }
    public Catalog getCatalog( ){
    	return this.catalog;
    }
    public void setUnit( Unit unit ){
        this.unit=unit;
    }
    public Unit getUnit( ){
    	return this.unit;
    }
    public void setConfiguration( Configuration configuration ){
        this.configuration=configuration;
    }
    public Configuration getConfiguration( ){
    	return this.configuration;
    }
    public Integer getDbid() {
        return dbid;
    }

    public void setDbid(Integer dbid) {
        this.dbid = dbid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getRefCatalogDbid() {
        return refCatalogDbid;
    }

    public void setRefCatalogDbid(Integer refCatalogDbid) {
        this.refCatalogDbid = refCatalogDbid;
    }

    public Integer getRefUnitDbid() {
        return refUnitDbid;
    }

    public void setRefUnitDbid(Integer refUnitDbid) {
        this.refUnitDbid = refUnitDbid;
    }

    public Integer getRefConfigurationDbid() {
        return refConfigurationDbid;
    }

    public void setRefConfigurationDbid(Integer refConfigurationDbid) {
        this.refConfigurationDbid = refConfigurationDbid;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getCatatypeid() {
        return catatypeid;
    }

    public void setCatatypeid(Integer catatypeid) {
        this.catatypeid = catatypeid;
    }

    public Double getRetailprice() {
        return retailprice;
    }

    public void setRetailprice(Double retailprice) {
        this.retailprice = retailprice;
    }

    public Double getLowretailprice() {
        return lowretailprice;
    }

    public void setLowretailprice(Double lowretailprice) {
        this.lowretailprice = lowretailprice;
    }

    public Double getLowwholesaleprice() {
        return lowwholesaleprice;
    }

    public void setLowwholesaleprice(Double lowwholesaleprice) {
        this.lowwholesaleprice = lowwholesaleprice;
    }

    public String getPinnumber() {
        return pinnumber;
    }

    public void setPinnumber(String pinnumber) {
        this.pinnumber = pinnumber == null ? null : pinnumber.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
